const express = require('express')
const app = express()

app.use((req,res,next)=>{
    const time = new Date()
    req.myTime = time
    next()
})

app.get('/',(req,res)=>{
    console.log(req.myTime);
    res.send(req.myTime)
})

app.listen(80,()=>{
    console.log('server run at http://127.0.0.1:80');
})